package com.itheima.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.TestUser;
import com.itheima.service.TestUserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/testuser")
public class TestUserController {

    @Reference
    TestUserService testUserService;

    @RequestMapping("/findAll")
    public Result findAll(Map map){
        List<TestUser> all = testUserService.findAll();
        return   new Result(true,"查询成功",all);
    }

}
